﻿using Sys.Common;
using Sys.Data;
using System;
using System.Linq;
using System.Text;

namespace Sys.Core
{
    /// <summary>
    /// 实例基类
    /// </summary>
    /// <typeparam name="T">实体类型</typeparam>
    /// <typeparam name="B">实体操作实例类型</typeparam>
    public class ExampleBase<T, B> : RepositoryAction<T>
        where T : class
        where B : new()
    {
        /// <summary>
        /// 实体操作实例
        /// </summary>
        public static B I
        {
            get { return Instantiation<B>.Example; }
        }
    }
}